using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPDV
{
    public partial class SPListItemForm : Form
    {
        public SPListItemData ListItemData
        {
            set
            {
                SPListItemData li = (SPListItemData)value;
                if (null != li)
                {
                    lblTitle.Text = li.Title + " " + li.ID;
                    dgvContent.DataSource = li.content;
                }
            }
        }
        public SPListItemForm()
        {
            InitializeComponent();
        }

        private void SPListItemForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape) Close();
        }
    }
}